package com.coment.po;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;

@Setter
@Getter
public class ServerInfo {
   @Id
   private String env;
   private String name;
   private Long serviceOpeningTime;


    public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof ServerInfo other)) {
         return false;
      } else {
          if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$serviceOpeningTime = this.getServiceOpeningTime();
            Object other$serviceOpeningTime = other.getServiceOpeningTime();
            if (this$serviceOpeningTime == null) {
               if (other$serviceOpeningTime != null) {
                  return false;
               }
            } else if (!this$serviceOpeningTime.equals(other$serviceOpeningTime)) {
               return false;
            }

            Object this$env = this.getEnv();
            Object other$env = other.getEnv();
            if (this$env == null) {
               if (other$env != null) {
                  return false;
               }
            } else if (!this$env.equals(other$env)) {
               return false;
            }

            Object this$name = this.getName();
            Object other$name = other.getName();
            if (this$name == null) {
                return other$name == null;
            } else return this$name.equals(other$name);
         }
      }
   }

   
   protected boolean canEqual(final Object other) {
      return other instanceof ServerInfo;
   }

   
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $serviceOpeningTime = this.getServiceOpeningTime();
      result = result * 59 + ($serviceOpeningTime == null ? 43 : $serviceOpeningTime.hashCode());
      Object $env = this.getEnv();
      result = result * 59 + ($env == null ? 43 : $env.hashCode());
      Object $name = this.getName();
      result = result * 59 + ($name == null ? 43 : $name.hashCode());
      return result;
   }

   
   public String toString() {
      String var10000 = this.getEnv();
      return "ServerInfo(env=" + var10000 + ", name=" + this.getName() + ", serviceOpeningTime=" + this.getServiceOpeningTime() + ")";
   }

   
   public ServerInfo() {
   }

   
   public ServerInfo(final String env, final String name, final Long serviceOpeningTime) {
      this.env = env;
      this.name = name;
      this.serviceOpeningTime = serviceOpeningTime;
   }
}
